/**
 * Created by gw on 2016/3/29.
 */
(function ($) {
    $.fn.keyEnterEvent = function (eventHandler) {
        $(this).keyup(function(e){
            if(e.keyCode == 13) {
                var val = $(this).val();
                //if(val != "" && val != null) {
                    eventHandler();
                //}
            }
        });
    }
})(jQuery)
